package com.fenghen.system.mapper;

import java.util.List;
import com.fenghen.system.domain.RiskAssessment;
import com.fenghen.system.domain.RiskIdentification;

/**
 * 风险评估与评级模块Mapper接口
 * 
 * @author fenghen
 * @date 2024-11-06
 */
public interface RiskAssessmentMapper 
{
    /**
     * 查询风险评估与评级模块
     * 
     * @param assessmentId 风险评估与评级模块主键
     * @return 风险评估与评级模块
     */
    public RiskAssessment selectRiskAssessmentByAssessmentId(Long assessmentId);

    /**
     * 查询风险评估与评级模块列表
     * 
     * @param riskAssessment 风险评估与评级模块
     * @return 风险评估与评级模块集合
     */
    public List<RiskAssessment> selectRiskAssessmentList(RiskAssessment riskAssessment);

    /**
     * 新增风险评估与评级模块
     * 
     * @param riskAssessment 风险评估与评级模块
     * @return 结果
     */
    public int insertRiskAssessment(RiskAssessment riskAssessment);

    /**
     * 修改风险评估与评级模块
     * 
     * @param riskAssessment 风险评估与评级模块
     * @return 结果
     */
    public int updateRiskAssessment(RiskAssessment riskAssessment);

    /**
     * 删除风险评估与评级模块
     * 
     * @param assessmentId 风险评估与评级模块主键
     * @return 结果
     */
    public int deleteRiskAssessmentByAssessmentId(Long assessmentId);

    /**
     * 批量删除风险评估与评级模块
     * 
     * @param assessmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRiskAssessmentByAssessmentIds(String[] assessmentIds);

    /**
     * 批量删除风险识别模块
     * 
     * @param assessmentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRiskIdentificationByRiskIds(String[] assessmentIds);
    
    /**
     * 批量新增风险识别模块
     * 
     * @param riskIdentificationList 风险识别模块列表
     * @return 结果
     */
    public int batchRiskIdentification(List<RiskIdentification> riskIdentificationList);
    

    /**
     * 通过风险评估与评级模块主键删除风险识别模块信息
     * 
     * @param assessmentId 风险评估与评级模块ID
     * @return 结果
     */
    public int deleteRiskIdentificationByRiskId(Long assessmentId);
}
